package com.gitee.wsl.android.ui.recyclerView.callback

import androidx.recyclerview.widget.RecyclerView

interface OnViewAttachStateChangeListener {

    /**
     * Called when a view is attached to the RecyclerView.
     */
    fun onViewAttachedToWindow(holder: RecyclerView.ViewHolder)

    /**
     * Called when a view is detached from RecyclerView.
     */
    fun onViewDetachedFromWindow(holder: RecyclerView.ViewHolder)
}

interface ViewAttachStateChangeListenerContainer{

    fun addOnViewAttachStateChangeListener(listener: OnViewAttachStateChangeListener)

    fun removeOnViewAttachStateChangeListener(listener: OnViewAttachStateChangeListener)

}